package com.example.demo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.demo.entity.PlatformMember;
import com.example.demo.entity.PlatformPaper;
import com.example.demo.mapper.PlatformPaperMapper;
import com.example.demo.service.PlatformPaperService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lzc
 * @date 2021/11/10 16 12
 * discription
 */
@Slf4j
@Service
public class PlatformPaperServiceImpl extends ServiceImpl<PlatformPaperMapper, PlatformPaper> implements PlatformPaperService {
    @Override
    public List<PlatformPaper> findByPlatformId(Integer platformId) {
        QueryWrapper<PlatformPaper> queryWrapper = new QueryWrapper<PlatformPaper>().
                eq(platformId != null, "platform_id", platformId);

        return super.list(queryWrapper);
    }
}
